from django.db.models import Manager

class TopicManager(Manager):
	def published(self, **kwargs):
		return super(TopicManager, self).get_query_set().filter(question__published = True, **kwargs)

class QuestionManager(Manager):
	def published(self, **kwargs):
		return super(QuestionManager, self).get_query_set().filter(published = True, **kwargs)
